<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>01 对象</title>
</head>

<body>


    <script>
        var person = {
            name: '刘德华',
            age: '18',
            sing: function() {
                console.log('我爱你，犹如大海一般深沉', this);

                function fn() {
                    console.log('fn', this);
                    return 8;
                }
                fn();
            }
        }

        console.log(person.name);
        person.sing();
    </script>
</body>

</html>